package com.gun.management.module.raffle.controller.admin.lottery.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.gun.management.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.gun.management.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 抽奖信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class LotteryPageReqVO extends PageParam {

    @Schema(description = "抽奖名称", example = "张三")
    private String name;

    @Schema(description = "抽奖类型(对应数据字典raffle_lottery_category)", example = "13660")
    private Long categoryId;

    @Schema(description = "每人抽奖总次数")
    private Integer totalTimes;

    @Schema(description = "每人每天抽奖次数")
    private Integer dayTotalTimes;

    @Schema(description = "单次抽奖消耗积分")
    private Integer expenseScore;


    @Schema(description = "抽奖活动背景图片",   example = "http://*****.com/bg.png")
    private String bgPicture;

    @Schema(description = "状态", example = "2")
    private Integer status;

    /**
     * 限制添加规则数量
     */
    @Schema(description = "限制添加规则数量", example = "8")
    private Integer maxPrizeCount;

    @Schema(description = "活动过期时间",   example = "2024-10-09 15:00:00")
    private LocalDateTime expiredTime;

    @Schema(description = "活动详情",   example = "2024-10-01国庆节深圳市南山区庆典")
    private String content;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}